home *** CD-ROM | disk | FTP | other *** search
- Tired of the same old compiling routine? You know,
- save your program, then save it as an ASCII file. After that
- annoying wait, you type SYSTEM, then run whatever batch file
- you have to compile your program.
- How would you like to eliminate that wait and speed
- up execution of your compiled program at the same time? If so,
- OPTIMIZE is for you. This program removes all unreferenced
- line numbers, allowing the compiler to optimize "over entire
- blocks of code rather than single lines" (BASIC Compiler
- documentation, p. 42).
- You can enter OPTIMIZE and be prompted through the
- program, or type OPTIMIZE <filename> and automatically optimize
- the specified BASIC program.
- Possibly the easiest way to use OPTIMIZE is copy it
- to your Compiler disk and slightly modify your current batch
- file. The necessary changes are:
-
- . add a call to OPTIMIZE before the call to BASCOM
- . Specify the /N option in your call to BASCOM
- . Erase the optimized ASCII file after the call to
- BASCOM to free up that space, if desired.
-
- My batch file looks like this:
-
- C:
- A:OPTIMIZE %1
- A:BASCOM %1.OPT,,/X/D/N%2
- ERASE %1.OPT
- A:LINK %1.OBJ
- ERASE %1.OBJ
- A:
-
- The first parameter is the BASIC program name (without
- an extension), the second is for any additional parameters
- you may need occasionally.
-
- In case you still think this may just be a waste of
- time, consider the fact that I found a 20% reduction in both
- execution time and total space for optimized programs. This
- won't necessarily be true for programs which are compiled
- without the /X and /D options, but some space and time
- reduction is inevitable.
- If you have any problems with the program, you can
- leave a message for me on the Hawkeye PC bulletin board.
- My name is Dave Glowacki, and the number of the bulletin
- board is (319)-363-3314. I will try to fix whatever errors
- come up, but please remember that it is a free program, so
- don't expect immediate results (or any results for that matter)
-